﻿using DevExpress.ExpressApp.Blazor.Editors;
using DevExpress.ExpressApp.Blazor.Editors.Adapters;
using DevExpress.ExpressApp.Model;

namespace EasyXaf.LowCode.WorkflowEditors;

public class WorkflowEditor : BlazorPropertyEditorBase
{
    public WorkflowEditor(Type objectType, IModelMemberViewItem model)
        : base(objectType, model)
    {
    }

    protected override IComponentAdapter CreateComponentAdapter()
    {
        return new WorkflowAdapter(new WorkflowModel
        {
            Value = PropertyValue as string
        });
    }
}
